<?php
include '../../auth/ceklogin.php';
include '../../sql/conn.php';
if(!isset($_REQUEST['temp'])){
    $from="`bukakainti`.`po_in`";
    $where="`po_in`.`id`";
}
/*else{
    $from="`bukakainti`.`quotation_item`";
    $where="`quotation_item`.`idQuotation_item`";
}
*/
$id=$_REQUEST['id'];
$query=mysql_query("
    DELETE FROM $from WHERE CONCAT($where) = '$id' LIMIT 1
    ");
if($query){
    echo json_encode(array('success'=>true));
} else {
    echo json_encode(array('msg'=>'Error Occured.'.  mysql_error()));
}

?>
